<script setup>
import { ref, nextTick } from 'vue';
import LevelAddUpdate from './level-add-update.vue';


const getMemberLevelList=()=>{
    console.log("222222")
}

// 添加/编辑会员等级
const childMemberLevelAddOrUpdate=ref();
const handleAddOrUpdate=async(id)=>{
  await nextTick(()=>{
    childMemberLevelAddOrUpdate.value.init(id);
  })
}

</script>

<template>
    <div class=''>
        <el-button type="primary" @click="handleAddOrUpdate(null)">Primary</el-button>
        <LevelAddUpdate @refreshData="getMemberLevelList" ref="childMemberLevelAddOrUpdate"></LevelAddUpdate>
    </div>
</template>

<style scoped lang='scss'>

</style>